<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>Document</title>
    <script src="../vue.js"></script>
  </head>

  <body>
    <div id="app">
      <ul>
        <li v-for="item in info">{{item.name}}-{{item.age}}</li>
      </ul>
    </div>
    <script>
      const vm = new Vue({
        el: "#app",
        data() {
          return {
            info: [
              {
                name: "张三",
                age: 18,
              },
              {
                name: "张四",
                age: 18,
              },
              {
                name: "张五",
                age: 18,
              },
            ],
          };
        },
      });
    </script>
  </body>
</html>
